package com.lemon.components.ant.project.makers;

import com.lemon.components.ant.project.beans.ModelInfo;
import com.lemon.components.ant.util.ConfigUtil;
import com.lemon.components.ant.util.TemplateUtil;
import com.lemon.ui.codemaker.component.RecentlyFile;
import com.system.core.security.NameUtil;

public class ModelMaker {

	public void make(ModelInfo beanInfo) {
		TemplateUtil.getInstance(ConfigUtil.getInstance(RecentlyFile.configFilePath).getProjectInfo().getTemplatePath()).build("/maven-project-template/service/ModelTemplate.java",
				beanInfo.getBeanPath() +
				NameUtil.getClassName(beanInfo.getBeanName())+".java", beanInfo);
	}
	
}